echo "build user apps"
cd ./user && make build
echo "build kernel"
cd ..
cd ./os && cargo build --release
cd ..
qemu-system-riscv64 -machine virt \
  -nographic \
  -bios ./bootloader/rustsbi-qemu.bin \
  -device loader,file=./os/target/riscv64gc-unknown-none-elf/release/os,addr=0x80200000 \
  -drive file=./disk.img.ori,if=none,format=raw,id=x0 \
  -device virtio-blk-device,drive=x0,bus=virtio-mmio-bus.0 #-drive file="\\\\.\\D:",if=none,format=raw,id=x0 \
